package com.cn.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class InternshipLog implements Serializable {
    /**
     * 日志ID
     */
    private String internshipLogId;

    /**
     * 实习ID
     */
    private String internshipId;

    /**
     * 日志内容
     */
    private String content;

    /**
     * 提交时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd")
    private Date submitDate;

    /**
     * 状态[0:正常 , 1:补交]
     */
    private Integer internshipLogState;

    /**
     * 备注
     */
    private String remarks;

    private static final long serialVersionUID = 1L;

    public String getInternshipLogId() {
        return internshipLogId;
    }

    public void setInternshipLogId(String internshipLogId) {
        this.internshipLogId = internshipLogId == null ? null : internshipLogId.trim();
    }

    public String getInternshipId() {
        return internshipId;
    }

    public void setInternshipId(String internshipId) {
        this.internshipId = internshipId == null ? null : internshipId.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public Integer getInternshipLogState() {
        return internshipLogState;
    }

    public void setInternshipLogState(Integer internshipLogState) {
        this.internshipLogState = internshipLogState;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", internshipLogId=").append(internshipLogId);
        sb.append(", internshipId=").append(internshipId);
        sb.append(", content=").append(content);
        sb.append(", submitDate=").append(submitDate);
        sb.append(", internshipLogState=").append(internshipLogState);
        sb.append(", remarks=").append(remarks);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}